<include file="Public/header"/>

		<div id="app">
			<!-- sidebar -->
			<include file="Public/left"/>
			<!-- / sidebar -->
			<div class="app-content">
				<!-- start: TOP NAVBAR -->
				<include file="Public/headernav"/>
				<!-- end: TOP NAVBAR -->
				<div class="main-content" >
					<div class="wrap-content container" id="container">
						<!-- start: PAGE TITLE -->
						<section id="page-title">
							<div class="row">
								<div class="col-sm-8">
									<h1 class="mainTitle">服务管理</h1>
									<span class="mainDescription"></span>
								</div>
								<nav id="cl-effect-10" class="links cl-effect-10">
									<a data-hover="新增" href="{:U('admin/group/goods_edit')}"><span>新增</span></a>
								</nav>
							</div>
<!--<style type="text/css">-->
	<!--.class_hidden{display:none;}-->
   <!--.panel-body{padding: 5px;}-->
   <!--.panel-heading{padding: 5px;min-height: 25px;}-->
<!--</style>						-->
<div class="row">
<div class="col-lg-12 col-md-12 margin-top-20" >
	<div class="panel panel-white">
		<div class="panel-heading">
			<h5 class="panel-title">筛选</h5>
		</div>
	<form role="form" class="form-inline">	
		<div class="panel-body">
				<div class="form-group">
					  <label for="goods_name" class="sr-only">
						服务名称
					  </label>
						<input type="text" name="goods_name" value="{$_GET.goods_name}" id="goods_name" placeholder="服务名称" class="form-control">
				</div>
				  <div class="form-group">
					<label for="is_show_index" class="sr-only">
						推荐到首页
					</label>
					<select class="form-control" id="is_show_index" name="is_show_index">
						<option value="all" <if condition="$_GET['is_show_index'] ==all">selected</if>>全部推荐</option>
						<option value="1" <if condition="$_GET['is_show_index'] ==1">selected</if>>已推荐到首页</option>
						<option value="0" <if condition="$_GET['is_show_index'] ===0">selected</if>>未推荐到首页</option>
					</select>
				</div>
			&nbsp;
				 <div class="form-group  " style="margin-top: -4x;">
                      <button class="btn btn-primary" type="submit">
		                   提交
					  </button>
				 </div>
		</div>
		</form>
   </div>
</div>
</div>
						<!-- end: PAGE TITLE -->
						<!-- end: PAGE TITLE -->
						<!-- start: YOUR CONTENT HERE -->



<table class="table table-striped table-hover" id="sample-table-2">
				<thead>
					<tr>
						<th class="center">服务图片</th>
						<th class="hidden-xs">服务名称</th>
						<th >服务价格</th>
						<th>上架状态</th>
						<th>推荐到首页</th>
						<th>审核状态</th>
						
						<th></th>
					</tr>
				</thead>
				<tbody>
      <volist  name="list['list']" id='vo' key='key'>
					<tr>
						<td class="center">
							<img src="{$vo.goods_image}" class="img-rounded" style="max-width:50px;max-height:50px;" alt="image">
						</td>
						<td class="hidden-xs">{$vo.goods_name}</td>
						
						<td>{$vo.goods_price}</td>
						<td>
						{$vo['goods_state']?'上架':'下架'}	
						</td>
						<td>{$vo['is_show_index']?'<span style="color:green;">已推荐到首页</span>':'未推荐到首页'}	</td>
						<td>
							<if condition="$vo['goods_status'] ==='0'">
                              待审核
							<elseif condition="$vo['goods_status'] eq 1"/>
							  审核通过
							<elseif condition="$vo['goods_status'] eq 2"/>
                              审核不通过
							</if>	
						</td>
						<td class="center">
						<div class="visible-md visible-lg hidden-sm hidden-xs">
							  <if condition="(!empty($_SESSION['topadmin']))">
								  {//管理员}
								  <if condition="$vo.is_show_index eq 0">
                           <a href="{:U("Admin/group/goods_show_index",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确定推荐该服务？')"  tooltip-placement="top" data-toggle="tooltip" data-original-title="推荐到首页"><i class="fa fa-thumbs-up"></i></a>
					                    <else/>
					                     <a href="{:U("Admin/group/goods_show_index",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" tooltip="Remove" onclick="return confirm('确取消推荐该服务？')" tooltip-placement="top" data-toggle="tooltip" data-original-title="取消推荐到首页"><i class="fa fa-thumbs-down"></i></a>
										</if>

                            <a href="{:U("Admin/group/goods_status",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip" data-original-title="审核"><i class="fa fa-wrench"></i></a>
                            </if>
                                <if condition="$vo.goods_state eq 1">
								  {//上架 下架}
                            <a href="{:U("Admin/group/goods_state",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip" data-original-title="下架"><i class="fa fa-arrow-down"></i></a>
                            <else/>
                              <a href="{:U("Admin/group/goods_state",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip" data-original-title="上架"><i class="fa fa-arrow-up"></i></a>
                            </if>


							<a href="{:U("Admin/group/goods_edit",array('id'=>$vo['id']))}" class="btn btn-transparent btn-xs" tooltip-placement="top" data-toggle="tooltip" data-original-title="编辑"><i class="fa fa-pencil"></i></a>

							<a href="{:U("Admin/Group/goods_del",array('id'=>$voo['id']))}" class="btn btn-transparent btn-xs tooltips" tooltip-placement="top" data-toggle="tooltip" data-original-title="删除"><i class="fa fa-times fa fa-white" onclick="return confirm('确定删除该数据？')"></i></a>
							
						</div>
						</td>
					</tr>
					
</volist>



		
				</tbody>
			</table>


 <div class="col-md-12 pages" align="center">{$list['page']|default='暂无数据'}</div>



						<!-- end: YOUR CONTENT HERE -->
					</div>
				</div>
			</div>
			<!--  FOOTER and SETTINGS -->
			
           <include file="Public/footer"/>
			<!-- end: FOOTER -->
			<!-- start: OFF-SIDEBAR -->
			
			<!-- end: OFF-SIDEBAR -->
			
		</div>
		<!-- start: MAIN JAVASCRIPTS -->

         <include file="Public/javascript"/>
		
		<!-- end: CLIP-TWO JAVASCRIPTS -->
	</body>
</html>
